<%@ page import="com.Bean.Ticket" %>
<%@ page import="java.util.Set" %>
<%@ page import="com.Util.TkDao" %>
<%@ page import="net.sf.json.JSONObject" %><%--
  Created by IntelliJ IDEA.
  User: root
  Date: 6/24/19
  Time: 8:03 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>tkdao</title>
</head>
<body>
tkdao
<%
    Set<Ticket> tkSet= TkDao.selectTkbyUsername("a");
    for(Ticket tk : tkSet)
    {
        JSONObject jb = JSONObject.fromObject(tk);
        String tojson = jb.toString();
%>
    <%=tojson%></br>
<%=tk.getId()%>|<%=tk.getUsername()%></br>
<%
    }
%>
</body>
</html>
